﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SSignUpCheckMsg extends IMessageBase
    {
        public var isCancel:Boolean;
        public var mode:int;
        public var captainId:SEntityId;
        public var memberId:SEntityId;
        public const _type:int = 7045;
        public static var _regist:SSignUpCheckMsg = new SSignUpCheckMsg(true);

        public function SSignUpCheckMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SSignUpCheckMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeBool(this.isCancel);
            param1.writeInt(this.mode);
            this.captainId.__write(param1);
            this.memberId.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.isCancel = param1.readBool();
            this.mode = param1.readInt();
            this.captainId = new SEntityId();
            this.captainId.__read(param1);
            this.memberId = new SEntityId();
            this.memberId.__read(param1);
            return;
        }// end function

    }
}
